package com.dongdongshop.service;

import com.dongdongshop.pojo.TbAddress;
import com.dongdongshop.pojo.TbAreas;
import com.dongdongshop.pojo.TbCities;
import com.dongdongshop.pojo.TbProvinces;
import com.dongdongshop.vo.AddressVo;

import java.util.List;

public interface TbAddressService {
    List<AddressVo> selectAddressByUserId(String username);

    List<TbProvinces> selectProvinces();

    List<TbCities> selectCities(String id);

    List<TbAreas> selectAreas(String id);

    void addAddress(TbAddress address);

    TbAddress selectAddressById(Long id);

    void updateAddressById(TbAddress address);

    void deleteAddressById(Long id);

    void toUpdateArea(Long id);

    AddressVo selectAddressByAId(Long userId);
}
